package com.im.immodel.config;

import androidx.annotation.NonNull;
import com.hotpot.uikit.talk.config.listener.MsgActionProxy;

import com.im.immodel.R;
import com.zjkj.qgbui.xpop.option_b_menu.TalkingActionEntity;

import java.util.ArrayList;
import java.util.List;

/*
 * IM会话底部内容配置
 * LiWei 2021/10/13
 * */
public class IMMsgActionConfig implements MsgActionProxy {

    @NonNull
    @Override
    public List<TalkingActionEntity> getMsgActionList(@NonNull String type) {
        List<TalkingActionEntity> list = new ArrayList<>();
        switch (type) {
            case "SINGLE":
            case "GROUP":
                list.add(new TalkingActionEntity("相册", R.drawable.btn_img));
                list.add(new TalkingActionEntity("语音通话", R.drawable.icon_msg_voice_action));
                list.add(new TalkingActionEntity("视频会议", R.drawable.btn_huiyi));
                list.add(new TalkingActionEntity("拨打电话", R.mipmap.hpui_call_phone));
                list.add(new TalkingActionEntity("文件", R.drawable.im_icon_send_file));
                list.add(new TalkingActionEntity("位置", R.drawable.icon_position));
                break;
            case "ISSELF":
                list.add(new TalkingActionEntity("相册", R.drawable.btn_img));
                list.add(new TalkingActionEntity("位置", R.drawable.icon_position));
                break;
            default:
                break;
        }
        return list;
    }

    @NonNull
    @Override
    public List<TalkingActionEntity> getQunMenuList() {
        List<TalkingActionEntity> list = new ArrayList<>();
        list.add(new TalkingActionEntity("群公告", R.drawable.announcement_blue));
        list.add(new TalkingActionEntity("图片和视频", R.mipmap.btn_search_img));
        list.add(new TalkingActionEntity("搜索", R.drawable.search_blue));
        return list;
    }

    @NonNull
    @Override
    public List<TalkingActionEntity> getSingleMenuList() {
        List<TalkingActionEntity> list = new ArrayList<>();
        list.add(new TalkingActionEntity("图片和视频", R.mipmap.btn_search_img));
        list.add(new TalkingActionEntity("搜索", R.drawable.search_blue));
        return list;
    }
}
